/*
 */
package org.vectrics.company;

import java.util.Date;

import org.vectrics.common.db.RecordObject;
import org.vectrics.common.db.Voidable;
import org.vectrics.location.Address;

/**
 * @author mmoore
 */
public class CompanyAddress implements Voidable, RecordObject {
	private Long id = null;
    private Company company = null;
    private Address address = null;
    private CompanyAddressType type = null;
    private Date dateStart = null;
    private Date dateEnd = null;
    private boolean voided = false;

    
    
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}
    /**
     * @return Returns the address.
     */
    public Address getAddress() {
        return address;
    }
    /**
     * @param address The address to set.
     */
    public void setAddress(Address address) {
        this.address = address;
    }
    /**
     * @return Returns the dateEnd.
     */
    public Date getDateEnd() {
        return dateEnd;
    }
    /**
     * @param dateEnd The dateEnd to set.
     */
    public void setDateEnd(Date dateEnd) {
        this.dateEnd = dateEnd;
    }
    /**
     * @return Returns the dateStart.
     */
    public Date getDateStart() {
        return dateStart;
    }
    /**
     * @param dateStart The dateStart to set.
     */
    public void setDateStart(Date dateStart) {
        this.dateStart = dateStart;
    }
    /**
     * @return Returns the type.
     */
    public CompanyAddressType getType() {
        return type;
    }
    /**
     * @param type The type to set.
     */
    public void setType(CompanyAddressType type) {
        this.type = type;
    }
    /**
     * @return Returns the voided.
     */
    public boolean getVoided() {
        return voided;
    }
    /**
     * @param voided The voided to set.
     */
    public void setVoided(boolean voided) {
        this.voided = voided;
    }
    
    
	/**
	 * @return Returns the company.
	 */
	public Company getCompany() {
		return company;
	}
	/**
	 * @param company The company to set.
	 */
	public void setCompany(Company company) {
		this.company = company;
	}
}
